package com.bw.car.net

import com.bw.base.constants.ApiConst
import com.bw.car.entity.AddCarParam
import com.bw.car.entity.PackPayEntity
import com.bw.car.entity.PayParam
import com.bw.http.utils.Res
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {
    @GET(ApiConst.URL_GET_PARKING_PAY)
    suspend fun getPackPay(): Res<List<PackPayEntity>>

    @POST(ApiConst.URL_POST_ADD_CAR)
    suspend fun addCar(@Body body:AddCarParam):Res<AddCarParam>

    @POST(ApiConst.URL_POST_PAY_CAR)
    suspend fun pay(@Body body:PayParam):Res<PayParam>
}